﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace jlynet.core.notebook.model
{
    /// <summary>
    /// 附件数据表(文件二进制保存，限定存储大小位5M)
    /// </summary>
    public class AccessoriesDataTableModel : BaseModel
    {
        private byte[] fileField;
        private string fileNameField;
        private string md5Field;

        /// <summary>
        /// 文件
        /// </summary>
        public byte[] file
        {
            get
            {
                return this.fileField;
            }
            set
            {
                this.fileField = value;
            }
        }

        /// <summary>
        /// 文件名称
        /// </summary>
        public string fileName
        {
            get
            {
                return this.fileNameField;
            }
            set
            {
                this.fileNameField = value;
            }
        }

        /// <summary>
        /// MD5校验值
        /// </summary>
        public string md5
        {
            get
            {
                return this.md5Field;
            }
            set
            {
                this.md5Field = value;
            }
        }
    }
}
